package io.github.cubelitblade.librarymanagementbackend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("favorite_view")
public class FavoriteRecordView {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("book_id")
    private Integer bookId;

    @TableField("book_title")
    private String bookTitle;

    @TableField("book_author")
    private String bookAuthor;

    @TableField("book_stock")
    private Integer bookStock;

    @TableField("book_img")
    private String bookImg;

    @TableField("create_time")
    private LocalDate createTime;
}
